package org.learn.java;

public class KaryTest {

	public static void main(String[] args) {
		/*
		 * Kary.conversionToBase(4352356, 20);
		 * Kary.conversionToDecimal("1740HG", 20);
		 */

		int n = Integer.parseInt(args[0]);
		for (int i = 1; i <= n*n; i++) {
			if(i % n == 0){
				System.out.println();
			}
			if(i % 2 == 0){
				System.out.print(" ");
			}else{
				System.out.print("*");
			}			
		}

	}

}
